package com.amumu.exception;

import com.amumu.enums.ResultEnum;

public class BaiTaiException extends RuntimeException {

	private Integer code;

	public BaiTaiException(ResultEnum resultEnum) {
		super(resultEnum.getMessage());

		this.code = resultEnum.getCode();
	}

	public BaiTaiException(Integer code, String message) {
		super(message);
		this.code = code;
	}
	
}
